package com.fengjue.service;

import com.fengjue.common.RespBean;
import com.fengjue.common.RespPageBean;
import com.fengjue.pojo.Employee;
import com.fengjue.pojo.EmployeeEc;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author fengjue
 * @since 2021-03-10
 */
public interface IEmployeeEcService extends IService<EmployeeEc> {
    /**
     *
     * @param currentPage 当前页
     * @param size 当前页的条数
     * @param employee 用对象去接收，搜索条件是员工名字，这里也可以单独加一个key
     * @param beginDateScope 开始时间与结束时间，这是个时间段数组
     * @return
     */
    RespPageBean getEmployeeByPage(Integer currentPage, Integer size, Employee employee, LocalDate... beginDateScope);

    RespBean maxWorkID();

    List<Employee> getEmployee(Integer id);
}
